import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);
const state = {
  allRoutes:null,
  routesKeyAndName:null,
};

const mutations={
  setRoutesKey (state,data) {
    state.routesKeyAndName=data
  },
  getRoutes (state, data ) {
     state.allRoutes=data
  }
}

export default {
  namespaced: true,
  state,
  mutations,
};
